package com.nd.bdc.presto.service;

import com.nd.bdc.presto.entity.CatalogsView;
import com.nd.bdc.presto.entity.PrestoSelectResult;

import java.util.List;

public interface PrestoService {
    public PrestoSelectResult query(String catalog, String schema, String sql, Integer startRow, Integer fetchSize) throws Throwable;
    public void execute(String channel, String catalog, String schema,final String sql,Integer resultsetFetchSize);
    @Deprecated
    public CatalogsView catalog()throws Throwable;
    public List<String> catalogs() throws Throwable;
    public List<String> schemas(String catalog) throws Throwable;
    public List<String> tables(String catalog,String schema) throws Throwable;
    public List<String> columns(String catalog,String schema,String table) throws Throwable;
    public Object kill(String queryId) throws Throwable;
}
